﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="News.aspx.cs" Inherits="HFWebManage.News.News" ValidateRequest="false" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <link href="../css/main.css" type="text/css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="../js/ManagerFunction.js"></script>
    <style type="text/css">
        .style1
        {
            width: 15%;
        }
    </style>
</head>
<form id="theForm" runat="server">
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
    <br>
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center"
        border="0">
        
        <tr>
            <th colspan="3">
                增加/修改   新闻</th>
        </tr>
        <tr>
          <td class="usertablerow1">所属法律事务</td>
          <td class="usertablerow1">
             <asp:DropDownList ID="dropClassID" runat="server" AutoPostBack="True" 
                  onselectedindexchanged="dropClassID_SelectedIndexChanged">
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
          <td class="usertablerow1">所属法律事务大分类</td>
          <td class="usertablerow1">
             <asp:DropDownList ID="dropbClassID" runat="server">
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr style="display:none;">
          <td class="usertablerow1">所属法律事务小分类</td>
          <td class="usertablerow1">
             <asp:DropDownList ID="dropsClassID" runat="server">
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
          <td class="usertablerow1">所属专题</td>
          <td class="usertablerow1">
             <asp:DropDownList ID="dropTopicID" runat="server">
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
          <td class="usertablerow1">省份</td>
          <td class="usertablerow1">
             <asp:DropDownList ID="DropProvinceID" runat="server" AutoPostBack="True" 
                  onselectedindexchanged="DropProvinceID_SelectedIndexChanged">
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
          <td class="usertablerow1">城市</td>
          <td class="usertablerow1">
            <asp:DropDownList ID="DropCityID" runat="server" AutoPostBack="False" >
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
            <td class="usertablerow1" width="15%">新闻标题：</td>
            <td class="usertablerow1">
                <asp:TextBox ID="tbTitle" runat="server" Width="382px"></asp:TextBox>
            </td>
            <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
           <td class="usertablerow1" width="15%">图片标题：</td>
           <td class="usertablerow1">
               <asp:Image ID="imgPicTitle" runat="server" Width="120px" />
           </td>
            <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
         <td class="usertablerow1" width="15%">上传图片：</td>
            <td class="usertablerow1">
                <asp:FileUpload ID="FileUpload1" runat="server" />
            </td>
             <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
            <td class="usertablerow1">概述</td>
            <td class="usertablerow1">
                <asp:TextBox ID="tbOverview" runat="server" Height="99px" TextMode="MultiLine" 
                    Width="383px"></asp:TextBox>
                    <script type="text/javascript">
                        CKEDITOR.replace('<%= tbOverview.ClientID %>',
                                 {
                                     filebrowserBrowseUrl: '../ckfinder/ckfinder.html',
                                     filebrowserImageBrowseUrl: '../ckfinder/ckfinder.html?Type=Images',
                                     filebrowserFlashBrowseUrl: '../ckfinder/ckfinder.html?Type=Flash',
                                     filebrowserUploadUrl: '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
                                     filebrowserImageUploadUrl: '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
                                     filebrowserFlashUploadUrl: '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
                                 }
                                );  
                      </script>
            </td>
            <td class="usertablerow1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="usertablerow1">
                <div align="left">内容</div>
            </td>
            <td class="usertablerow1">
                <asp:TextBox ID="tbContent" runat="server" Height="99px" TextMode="MultiLine" 
                    Width="383px"></asp:TextBox>
                    <script type="text/javascript">
                        CKEDITOR.replace('<%= tbContent.ClientID %>',
                                 {
                                     filebrowserBrowseUrl: '../ckfinder/ckfinder.html',
                                     filebrowserImageBrowseUrl: '../ckfinder/ckfinder.html?Type=Images',
                                     filebrowserFlashBrowseUrl: '../ckfinder/ckfinder.html?Type=Flash',
                                     filebrowserUploadUrl: '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
                                     filebrowserImageUploadUrl: '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
                                     filebrowserFlashUploadUrl: '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
                                 }
                                );  
                      </script>
            </td>
            <td class="usertablerow1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="usertablerow2">
                <div align="left">发布人</div>
            </td>
            <td class="usertablerow2">
                <asp:TextBox ID="tbByUser" runat="server"></asp:TextBox>
            </td>
            <td class="usertablerow2">
                &nbsp;</td>
        </tr>
         <tr>
            <td class="usertablerow2">
                <div align="left">来源</div>
            </td>
            <td class="usertablerow2">
                <asp:TextBox ID="tbByForm" runat="server">110.com</asp:TextBox>
            </td>
            <td class="usertablerow2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="usertablerow1">
                <div align="left">是否推荐到首页</div>
            </td>
            <td class="usertablerow1">
                <asp:RadioButtonList ID="rblisIndex" runat="server" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="1">是</asp:ListItem>
                    <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td class="usertablerow1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="usertablerow2">
                <div align="left">点击数</div>
            </td>
            <td class="usertablerow2">
                <asp:TextBox ID="tbHits" runat="server">0</asp:TextBox>
            </td>
            <td class="usertablerow2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="usertablerow1">
                <div align="left">是否首页轮播图片</div>
            </td>
            <td class="usertablerow1">
                <asp:RadioButtonList ID="rblisRotation" runat="server" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="1">是</asp:ListItem>
                    <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td class="usertablerow1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="usertablerow2">
                <div align="left">连续添加</div>
            </td>
            <td class="usertablerow2">
                <asp:RadioButtonList ID="isGo" runat="server" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Selected="True" Value="1">是</asp:ListItem>
                    <asp:ListItem  Value="0">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td class="usertablerow2">修改新闻时失效</td>
        </tr>
        <tr>
            <td class="usertablerow1">
                <div align="left">首页置顶</div>
            </td>
            <td class="usertablerow2">
                <asp:RadioButtonList ID="rblisTop" runat="server" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem  Value="1">是</asp:ListItem>
                    <asp:ListItem  Value="0" Selected="True">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td class="usertablerow2"></td>
        </tr>
        <tr>
            <td class="usertablerow1">&nbsp;
                </td>
            <td class="usertablerow1">
                <div align="left">
                    <asp:Button ID="Button1" runat="server" Text="保存" onclick="Button1_Click"/>
                    <asp:HiddenField ID="IDS" runat="server" />
                </div>
            </td>
            <td class="usertablerow1">&nbsp;</td>
        </tr>
        
    </table>
    <br />
</body>
</form>
</html>
